import { instance as axios } from '@/axios.js'
/** 查询图库列表 */
export function getImagePageList(page) {
    return axios.get(`/admin/image_class/${page}`,)
}
/**增加图库分类 */
export function addImageClassify(input) {
    return axios({
        url: '/admin/image_class',
        method: 'POST',
        data: input
    })
}
/**修改图库分类 */
export function updateImageClassify(id, input) {
    return axios({
        url: `/admin/image_class/${id}`,
        method: 'POST',
        data: input,
    })
}
/**删除图库分类 */
export function deleteImageClassify(id) {
    return axios({
        url: `/admin/image_class/${id}/delete`,
        method: 'POST'
    })
}

/**查询指定分类下的图片列表 */
export function getPictureList(id, page) {
    return axios({
        url: `/admin/image_class/${id}/image/${page}`,
        method: 'GET',
    })
}